//
//  LoginViewController.m
//  ProductB
//
//  Created by lanou on 16/6/2.
//  Copyright © 2016年 ChenZheng. All rights reserved.
//

#import "LoginViewController.h"

@interface LoginViewController ()

@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor grayColor];
    //添加导航栏
    [self addNaviView];
    
}
#pragma mark--------添加模拟导航栏----
-(void)addNaviView{
    UIView *naviView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kWidth, 64)];
    naviView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:naviView];
    
    //标题lab
    UILabel *titleLab = [[UILabel alloc]initWithFrame:CGRectMake((kWidth - 100)/2, 20, 100, 30)];
//    titleLab.backgroundColor = [UIColor redColor];
    titleLab.textAlignment = NSTextAlignmentCenter;
    titleLab.text = @"登陆账户";
    [naviView addSubview:titleLab];
    
    //导航左button（取消）
    UIButton *cancelBtn = [UIButton buttonWithType:UIButtonTypeSystem];
    [cancelBtn setTitle:@"取消" forState:UIControlStateNormal];
    cancelBtn.frame = CGRectMake(5, 20, 50, 30);
    cancelBtn.titleLabel.textColor = [UIColor cyanColor];
    [naviView addSubview:cancelBtn];
    //导航右button（注册）
    UIButton *registerBtn = [UIButton buttonWithType:UIButtonTypeSystem];
    [registerBtn setTitle:@"注册" forState:UIControlStateNormal];
    registerBtn.frame = CGRectMake(kWidth - 60, 20, 50, 30);
    registerBtn.titleLabel.textColor = [UIColor cyanColor];
    [naviView addSubview:registerBtn];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
